package com.cynteka.cyfoman.core.collection;

/**
 * User: Sergey
 * Date: 29.07.11
 * Time: 11:50
 */
public abstract class BaseLink<Source, Destination> extends RegistryItem implements ILink<Source, Destination> {

    private final String collectionSourceId;
    private final String collectionDestinationId;
    private final LinkType linkType;

    public BaseLink(String id, String collectionSourceId, String collectionDestinationId, LinkType linkType) {
        super(id);
        this.collectionSourceId = collectionSourceId;
        this.collectionDestinationId = collectionDestinationId;
        this.linkType = linkType;
    }

    @Override
    public String getCollectionSourceId() {
        return collectionSourceId;
    }

    @Override
    public String getCollectionDestinationId() {
        return collectionDestinationId;
    }

    @Override
    public LinkType getLinkType() {
        return linkType;
    }
}
